//
//  ApplyAuthHeadView.swift
//  Venus
//
//  Created by qurongxiang on 2018/8/4.
//  Copyright © 2018年 zhaowang. All rights reserved.
//

import UIKit

class ApplyAuthHeadView: UIView {
    
    fileprivate lazy var titleLabel = UILabel(UIColor.black, 14, "剩余第1期应付租金(元)")
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

extension ApplyAuthHeadView {
    func configModel(section:Int) {
        if section == 1 {
            titleLabel.text = "上传身份证明（仅用于认证)"
        }else {
            titleLabel.text = "上传职业证书相关证明"
        }
    }
}

extension ApplyAuthHeadView {
    func setupUI() {
        addSubview(titleLabel)
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalTo(self).offset(10)
            make.centerY.equalToSuperview()
        }
    }
}
